package com.hwadee.springboot_lx.entity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDate;

@Getter
@Setter
@Entity
@Table(name = "teacher")
public class Teacher {
    @Id
    @Column(name = "TeacherID", nullable = false)
    private Integer id;

    @Column(name = "TeacherAccount", nullable = false, length = 50)
    private String teacherAccount;

    @Column(name = "TeacherName", length = 100)
    private String teacherName;

    @Column(name = "TeacherGender", length = 10)
    private String teacherGender;

    @Column(name = "BirthDate")
    private LocalDate birthDate;

    @Column(name = "Password", nullable = false, length = 20)
    private String password;

}